<template>
	<!-- Fragment 不用根标签 -->
	<p>{{ count }}</p>
	<button @click="handleClick">按钮</button>
	<HelloWorld :msg="msg" />
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'

export default {
	name: 'App',
	data() {
		return {
			count: 0,
			msg: 'hello world',
		}
	},
	methods: {
		handleClick() {
			this.count++
		},
	},
	components: {
		HelloWorld,
	},
}

// This starter template is using Vue 3 experimental <script setup> SFCs
// Check out https://github.com/vuejs/rfcs/blob/script-setup-2/active-rfcs/0000-script-setup.md
</script>

<style>
#app {
	font-family: Avenir, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-align: center;
	color: #2c3e50;
	margin-top: 60px;
}
</style>
